<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script type="text/javascript">

function resize(){
	parent.window.document.all('dataRegisterlListFrame').style.height=document.body.scrollHeight;
}
function showDetail(id){
	var url = "${ctx}/charge_meterDataRegisterAction.do?method=getMeterDataDetail&meterDataId="+id;
	top.windowOpen(url,'showDetail','${key.charge_meterDataList_detail}',400,450);
}
</script>
</head>
<body onload="resize()">
<div style="overflow:auto; height:270px;">
<ec:ceTable     items="dataRegisterList"
				action="${ctx}/charge_cashieringAction.do?method=requestDataRegisterList"
				var="dataRegister"
				view="pmsview"
				styleClass="gridData2"
				rowsDisplayed="10">
				<ec:ceRow styleClass="grid" onclick=""   ondblclick="showDetail('${dataRegister.chargeDataId}')">
					<ec:ceColumn property="houseNumber" headerCell="pmsHeadrCell" width="10%" title="${key.charge_meterDataList_houseNumber}"></ec:ceColumn>
					<ec:ceColumn property="owners" headerCell="pmsHeadrCell"  width="10%"  title="${key.charge_meterDataList_ownerName}"></ec:ceColumn>
					<ec:ceColumn property="periodDate" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_period}"></ec:ceColumn>
					<ec:ceColumn property="meterName" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_meterName}"></ec:ceColumn>
					<ec:ceColumn property="thisReading" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_thisReading}"></ec:ceColumn>
					<ec:ceColumn property="lastReading" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_lastReading}"></ec:ceColumn>
					<ec:ceColumn property="wastage" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_dosage}"></ec:ceColumn>
					<ec:ceColumn property="recordTime" cell="date" parse="yyyy-MM-dd" format="yyyy-MM-dd" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_recordDate}"></ec:ceColumn>
					<ec:ceColumn property="statuz" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_meterDataList_statuz}">
						<c:choose>
						<c:when test="${dataRegister.statuz eq '001'}">${key.charge_meterDataList_new}</c:when>
						<c:when test="${dataRegister.statuz eq '002'}">${key.charge_meterDataList_counted}</c:when>
						<c:otherwise>${key.charge_meterDataList_abate}</c:otherwise>
					</c:choose>
					</ec:ceColumn>
				</ec:ceRow>
				<ec:parameter name="houseId" value="${houseId}"></ec:parameter>
				<ec:parameter name="proRightId" value="${proRightId}"></ec:parameter>
				<ec:parameter name="isVirtual" value="${isVirtual}"></ec:parameter>
				<ec:parameter name="meterId" value="${queryDataVO.meterId}"></ec:parameter>
				<ec:parameter name="recordTime" value="${queryDataVO.recordTime}"></ec:parameter>
				<ec:parameter name="statuz" value="${queryDataVO.statuz}"></ec:parameter>
				<ec:parameter name="periodId" value="${queryDataVO.periodId}"></ec:parameter>
</ec:ceTable>
</div>
</body>
</html>
